package day06;

/*
 * Author: JacksonCoder
 * FileName: tryDemo
 * Version: 1.0.0
 * Date: 2025/4/13
 */

import java.io.FileReader;
import java.io.IOException;

public class tryDemo {

    public static void main(String[] args) {
        FileReader reader = null;
        String path = "//";
        try{
            reader = new FileReader(path);
            int data = reader.read();
            System.out.println((char) data);
        }catch(IOException e){
            System.out.println("文件读取失败： " + e.getMessage());
        }finally{
            try{
                if (reader != null) reader.close();
            }catch(IOException e){
                e.printStackTrace();
            }
        }

    }

}
